﻿<UserControl x:Class="AOuSuisJeWP7.Friends"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="530" d:DesignWidth="480" xmlns:my="clr-namespace:AOuSuisJeWP7">
    
    <Grid x:Name="LayoutRoot" Background="{StaticResource PhoneChromeBrush}">
        <TextBox Height="72" HorizontalAlignment="Left" Margin="8,12,0,0" Name="friendTextBox" Text="" VerticalAlignment="Top" Width="460" IsEnabled="False" Visibility="Collapsed" />
        <Button Content="Ajouter" Height="72" Margin="12,90,246,0" Name="AddButton" VerticalAlignment="Top" Click="AddButton_Click" IsEnabled="False" Visibility="Collapsed" />
        <Button Content="Chercher" Height="72" Margin="254,90,12,0" Name="SearchButton" VerticalAlignment="Top" Click="SearchButton_Click" IsEnabled="False" Visibility="Collapsed" />
        <ListBox Height="518" HorizontalAlignment="Left" Margin="8,12,0,0" Name="listBox1" VerticalAlignment="Top"  Width="460" ItemsSource="{Binding}" >
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel Margin="0,0,0,17" Width="480">
                        <TextBlock Text="{Binding}"  TextWrapping="Wrap" Style="{StaticResource PhoneTextLargeStyle}"  />

                    </StackPanel>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
    </Grid>
</UserControl>
